import {createI18n} from 'vue-i18n'

const messages = {
    en: {
        msg: {
            text: 'hello world'
        }
    },
    zh: {
        msg: {
            text: '你好世界'
        }
    }
}
const locale = 'zh'

const i18n = createI18n({
    legacy: false,
    globalInjection: true,
    locale,
    messages,
    missingWarm: false,
})
console.log(i18n)
export default i18n